package org.linlinjava.litemall.db.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.ShopRefundListQuery;
import org.linlinjava.litemall.db.domain.ShopRefundListVo;
import org.linlinjava.litemall.db.domain.RefundStatisticsVo;
import org.linlinjava.litemall.db.domain.TotalRefundStatisticsVo;
import org.linlinjava.litemall.db.domain.TotalShopRefundStatisticsVo;

public interface RefundMapper {
    
    List<RefundStatisticsVo> statistics(
    		@Param("startTime") String startTime,
    		@Param("endTime") String endTime,
    		@Param("regionId") Integer regionId);
    
    TotalRefundStatisticsVo totalStatistics(
    		@Param("startTime") String startTime,
    		@Param("endTime") String endTime,
    		@Param("regionId") Integer regionId);
    
    List<RefundStatisticsVo> proxyStatistics(
    		@Param("startTime") String startTime,
    		@Param("endTime") String endTime,
    		@Param("regionId") Integer regionId);
    
    TotalRefundStatisticsVo proxyTotalStatistics(
    		@Param("startTime") String startTime,
    		@Param("endTime") String endTime,
    		@Param("regionId") Integer regionId);
    
    IPage<ShopRefundListVo> shopRefundList(IPage<ShopRefundListVo> page,@Param("query") ShopRefundListQuery query);
    
    TotalShopRefundStatisticsVo totalShopStatistic(@Param("query") ShopRefundListQuery query);
  
}